<!-- 教研室主任考试安排 -->
<template>
  <div>
    <div
      class="wrapper-container "
      style="width:100%;display: flex; flex-direction: column"
    >
      <div class="search-container" style="width:100%;margin:0;padding-left:0">
        <div class="search-container-left">
          <div class="search-container-item">
            <span style="color:#004ca7">学&ensp;&ensp;&ensp;&ensp;期：</span>
            <el-select
              v-model="searchParams.termid" 
              size="mini"
              placeholder="请选择学期"
              style="width: 160px"
              clearable
            >
              <el-option
                v-for="(item,index) in xqList"
                :key="index"
                :label="item.xqmc"
                :value="item.xqmc"
              >
              </el-option>
            </el-select>
          </div>
          <div class="search-container-item">
            <span style="color:#004ca7">批&ensp;&ensp;&ensp;&ensp;次：</span>
            <el-select
              v-model="searchParams.termid" 
              size="mini"
              placeholder="请选择批次"
              style="width: 160px"
              clearable
            >
              <el-option
                v-for="(item,index) in xqList"
                :key="index"
                :label="item.xqmc"
                :value="item.xqmc"
              >
              </el-option>
            </el-select>
          </div>
          <div class="search-container-item">
            <span style="color:#004ca7">考试类型：</span>
            <el-select
              v-model="searchParams.termid" 
              size="mini"
              placeholder="请选择考试类型"
              style="width: 160px"
              clearable
            >
              <el-option
                v-for="(item,index) in xqList"
                :key="index"
                :label="item.xqmc"
                :value="item.xqmc"
              >
              </el-option>
          </el-select>
          </div>
          <div class="search-container-item">
            <span style="color:#004ca7">日&ensp;&ensp;&ensp;&ensp;期：</span>
            <el-date-picker type="date" clearable value-format="yyyy-MM-dd" format="yyyy-MM-dd" placeholder="请选择日期" v-model="searchParams.rq" style="width: 160px" size="mini"></el-date-picker>
          </div>
          <div class="search-container-item">
            <!-- &ensp;&ensp;&ensp;&ensp; -->
            <span style="color:#004ca7">节&ensp;&ensp;&ensp;&ensp;次：</span>
            <el-select
                v-model="searchParams.section" size="mini"
                placeholder="请选择节次"
                style="width:160px"
                clearable
              >
                <el-option
                  v-for="item in sectionList"
                  :key="item.dictKey"
                  :label="item.dictValue"
                  :value="item.dictKey"
                >
                </el-option>
              </el-select>
          </div>
          <div class="search-container-item" style="margin-top:15px">
            <span style="color:#004ca7">队&ensp;&ensp;&ensp;&ensp;别：</span>
            <el-select
                v-model="searchParams.section" size="mini"
                placeholder="请选择队别"
                style="width:160px"
                clearable
              >
                <el-option
                  v-for="item in sectionList"
                  :key="item.dictKey"
                  :label="item.dictValue"
                  :value="item.dictKey"
                >
                </el-option>
              </el-select>
          </div> 
          <div class="search-container-item" style="margin-top:15px">
            <span style="color:#004ca7">级&ensp;&ensp;&ensp;&ensp;次：</span>
            <el-select
                v-model="searchParams.section" size="mini"
                placeholder="请选择级次"
                style="width:160px"
                clearable
              >
                <el-option
                  v-for="item in sectionList"
                  :key="item.dictKey"
                  :label="item.dictValue"
                  :value="item.dictKey"
                >
                </el-option>
              </el-select>
          </div> 
          <div class="search-container-item" style="margin-top:15px">
            <span style="color:#004ca7">专业班次：</span>
            <el-select
              v-model="searchParams.termid" 
              size="mini"
              placeholder="请选择专业班次"
              style="width: 160px"
              clearable
            >
              <el-option
                v-for="(item,index) in xqList"
                :key="index"
                :label="item.xqmc"
                :value="item.xqmc"
              >
              </el-option>
          </el-select>
          </div>
          <div class="search-container-item" style="margin:15px 0 0 0">
            <span style="color:#004ca7">人&ensp;&ensp;&ensp;&ensp;数：</span>
            <el-input
              style="width: 135px;"
              size="mini"
              placeholder="请输入内容"
              v-model="searchParams.exaNumber"
              clearable
              type="number"
            ></el-input><span style="margin-left:5px">人</span>
          </div>
          <div class="search-container-item" style="margin:15px 0 0 0">
            <span>课程名称：</span>
            <el-input
              style="width: 160px;"
              size="mini"
              placeholder="请输入内容"
              v-model="searchParams.coursename"
              clearable
            ></el-input>
          </div>
          <div class="search-container-item" style="margin:15px 0 0 0">
            <!-- <span style="margin-right: 38px;">教员名称：</span> -->
            <span>教员名称：</span>
            <el-input
              style="width: 160px"
              size="mini"
              placeholder="请输入内容"
              v-model="searchParams.coursename"
              clearable
            ></el-input>
          </div>
          <div class="search-container-item" style="margin-top:15px;width:280px">
            <span style="color:#004ca7">状&ensp;&ensp;&ensp;&ensp;态：</span>
            <el-select
                v-model="searchParams.examcoucheckstatus" 
                size="mini"
                placeholder="请选择状态"
                style="width:180px"
                value-key="value"
                clearable
                multiple
                collapse-tags
              >
                <el-option
                  v-for="item in statusList"
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </el-select>
          </div>
          <div class="search-button" style="margin:17px 15px 0 0">
            <img src="../../../assets/assessment/icon-search.png" alt="" style="width:17px;height:17px" />
            <span style="font-size:14px">查询</span>
          </div>
          <div style="display: inline-flex;">
            <div class="all-button" @click="linkAllExam('one')" style="border:1px solid #02c86c;background: #f1fff8;">
              <!-- <img src="../../../assets/workload/testbule.png" alt=""/> -->
              <span style="color:#02c86c">查看全部考试安排</span>
            </div>
            <div class="all-button" style="margin-left:15px" @click="linkAllExam('two')">
              <!-- <img src="../../../assets/workload/testyellow.png" style="width: 15px;height: 15px;" alt=""/> -->
              <span>查看全部缓考安排</span>
            </div>
          </div>
        </div>
    </div>
    </div>

    <div class="assessment-container" style="width:100%">
      <div class="table-container" style="width:100%">
        <div class="table-header">
          <div class="item checkbox" style="width: 71px;">
            <span>选择</span>
          </div>
          <div class="item kcbh" style="width: 112px;">
            <span>状态/操作</span>
          </div>
          <div class="item pycc" style="width: 112px;">日期</div>
          <div class="item xxlx" style="width: 112px;">节次</div>
          <div class="item skjy" style="width: 112px;">系</div>
          <div class="item nj" style="width: 112px;">教研室</div>
          <div class="item jxb" style="width: 112px;">考试课程</div>
          <div class="item zybc" style="width: 112px;">授课教员</div>
          <div class="item jxbrs" style="width: 112px;">考试类型</div>
          <div class="item zrs" style="width: 112px;">考试方式</div>
          <div class="item fz" style="width: 112px;">队别</div>
          <div class="item jc" style="width: 112px;">级次</div>
          <div class="item kxzy" style="width: 112px;">专业班次</div>
          <div class="item ktcp" style="width: 112px;">人数</div>
          <div class="item qzks" style="width: 112px;">考场</div>
          <div class="item kzkh" style="width: 112px;">监考员</div>
          <div class="item ypfj" style="width: 112px">备注</div>
        </div>
        <div class="table-body" v-for="(item, index) in tableData" :key="index">
          <div class="item kcbh" style="width: 71px;">
            <div class="x-context">
              <el-checkbox></el-checkbox>
            </div>
          </div>
          <div class="item kcbh"  style="width: 112px;">
            <div class="x-context">
              <span v-if="item.kcmc">{{ item.kcmc }}</span>
              <div v-else>
                <ButtonItem
                  :name="'安排考试'"
                  :link="''"
                  :icon="''"
                  :buttonColor="'green'"
                ></ButtonItem>
                <ButtonItem
                  style="margin:10px 0"
                  :name="'审核通过'"
                  :link="''"
                  :icon="''"
                  :buttonColor="'orange'"
                ></ButtonItem>
                <ButtonItem
                  :name="'打回'"
                  :link="''"
                  :icon="''"
                  :buttonColor="'red'"
                ></ButtonItem>
              </div>
            </div>
          </div>
          <div class="item right-content">
            <div class="right-content-info">
              <div class="item pycc" style="width: 112px;">{{ item.pycc }}</div>
              <div class="item xxlx" style="width: 112px;">{{ item.xxlx }}</div>
              <div class="item skjy" style="width: 112px;">{{ item.skjy }}</div>
              <div class="item nj" style="width: 112px;">{{ item.nj }}</div>
              <div class="item jxb" style="width: 112px;">{{ item.jxb }}</div>
              <div class="item zybc" style="width: 112px;">{{ item.zybc }}</div>
              <div class="item jxbrs" style="width: 112px;">{{ item.jxbrs }}</div>
              <div class="item zrs" style="width: 112px;">{{ item.zrs }}</div>
              <div class="item fz" style="width: 112px;">
                <div class="item fza">{{ item.fza }}</div>
                <div class="item fzb">{{ item.fzb }}</div>
                <div class="item fzc">{{ item.fzc }}</div>
              </div>
              <div class="item jc" style="width: 112px;">
                <div class="item fza">{{ item.jca }}</div>
                <div class="item fzb">{{ item.jcb }}</div>
                <div class="item fzc">{{ item.jcc }}</div>
              </div>
              <div class="item kxzy" style="width: 112px;">
                <div class="item fza">{{ item.kxzybla }}</div>
                <div class="item fzb">{{ item.kxzyblb }}</div>
                <div class="item fzc">{{ item.kxzyblc }}</div>
              </div>
              <div class="item ktcp" style="width: 112px;">
                <div class="item fza">{{ item.ktcpszbla }}</div>
                <div class="item fzb">{{ item.ktcpszblb }}</div>
                <div class="item fzc">
                  {{ item.ktcpszblc }}
                </div>
              </div>
              <div class="item qzks" style="width: 112px;">
                <div class="item fza">{{ item.zqksszbla }}</div>
                <div class="item fzb">{{ item.zqksszblb }}</div>
                <div class="item fzc">
                  {{ item.zqksszblc }}
                </div>
              </div>
              <div class="item kzkh" style="width: 112px;">
                <div class="item fza">
                  <div class="fzaa">
                    <span> {{ item.kzkhszbla }}</span>
                    <div class="cz-save" @click="showYprDialogs = true">
                      申请调整监考
                    </div>
                  </div>
                </div>
                <div class="item fzb" style="width: 112px;">
                  <div class="fzaa">
                    <span>{{ item.kzkhszblb }}</span>
                    <div class="cz-edit" @click="showYprDialog = true">
                      <span>设置监考员</span>
                    </div>
                  </div>
                </div>
                <div class="item fzc">
                  <div class="fzaa">
                    <span>{{ item.kzkhszblc }}</span>
                    <div class="cz-change" @click="showYprDialog = true">
                      更改
                    </div>
                  </div>
                </div>
              </div>
              <div class="item ypfj"  style="width: 112px;">
                <div class="item fza" @click="showAddMessageDialog = true">
                  {{ item.ypfja }}
                </div>
                <div class="item fzb">{{ item.ypfjb }}</div>
                <div class="item fzc">
                  {{ item.ypfjc }}
                </div>
              </div>
            </div>
            <div class="spjd">
              <div class="spjd-title">排考进度：</div>
              <div class="time-line-horizon">
                <div class="time-line-block">
                  <div class="person-name">{{ item.spjd.spjd1.name }}</div>
                  <div class="line-content">
                    <img
                      src="../../../assets/assessment/icon-finish.png"
                      alt=""
                    />
                    <div class="date-time">
                      <span class="date">{{ item.spjd.spjd1.date }}</span>
                      <span class="time">{{ item.spjd.spjd1.time }}</span>
                    </div>
                  </div>
                  <div class="operate">
                    <div
                      class="ly-block"
                      @click="showAddMessageDialogly = true"
                    >
                      <img
                        src="../../../assets/assessment/icon-ly.png"
                        alt=""
                      />
                      <div class="ly">留言</div>
                    </div>
                  </div>
                </div>
                <div class="time-line-block"></div>
                <div class="time-line-block">
                  <div class="person-name">{{ item.spjd.spjd2.name }}</div>
                  <div class="line-content">
                    <img src="../../../assets/assessment/icon-dai.png" alt="" />
                    <div class="date-time">
                      <span class="date">{{ item.spjd.spjd2.date }}</span>
                      <span class="time">{{ item.spjd.spjd2.time }}</span>
                    </div>
                  </div>
                  <div class="operate">
                    <div class="bubble-block">
                      <span
                        >请输入留言请输入请输入留言请输入留言请输入留言请输入</span
                      >
                      <div
                        class="operate-button"
                        @click="showAddMessageDialoglys = true"
                      >
                        <div class="button-sc">查看</div>
                      </div>
                    </div>
                  </div>
                </div>
                <div class="time-line-block"></div>
                <div class="time-line-block">
                  <div class="person-name">{{ item.spjd.spjd3.name }}</div>
                  <div class="line-content">
                    <img
                      src="../../../assets/assessment/icon-close.png"
                      alt=""
                    />
                    <div class="date-time">
                      <span class="date">{{ item.spjd.spjd3.date }}</span>
                      <span class="time">{{ item.spjd.spjd3.time }}</span>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <div
      class="wrapper-container "
      style="display: flex; flex-direction: column"
    >
      <div class="bottom-block">
        <div class="export-button">
          <img src="../../../assets/assessment/icon-export.png" alt="" />
          <span>导出Excel</span>
        </div>
        <div class="text">授课教员名字后加“*”为课程负责人</div>
      </div>
    </div>
    <el-dialog title="备注" :visible.sync="showAddMessageDialog" width="983px">
      <div class="message-container">
        <div>填写备注：</div>
        <div>
          <el-input
            v-model="meaasgeText"
            type="textarea"
            :rows="8"
            style="width: 550px"
          ></el-input>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <button class="green" @click="showAddMessageDialog = false">
          确 定
        </button>
      </span>
    </el-dialog>
    <el-dialog
      title="留言"
      :visible.sync="showAddMessageDialogly"
      width="983px"
    >
      <div class="message-container">
        <div>添加留言：</div>
        <div>
          <el-input
            v-model="meaasgeText"
            type="textarea"
            :rows="8"
            style="width: 550px"
          ></el-input>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <button class="green" @click="showAddMessageDialogly = false">
          确 定
        </button>
      </span>
    </el-dialog>
    <el-dialog
      title="查看留言"
      :visible.sync="showAddMessageDialoglys"
      width="983px"
    >
      <div class="message-container">
        <div>留言详情：</div>
        <div>
          <el-input
            v-model="meaasgeText"
            type="textarea"
            :rows="8"
            style="width: 550px"
          ></el-input>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <button class="green" @click="showAddMessageDialoglys = false">
          确 定
        </button>
      </span>
    </el-dialog>
    <el-dialog
      title="设置监考员"
      :visible.sync="showYprDialog"
      width="983px"
      style="height:832px"
      class="szjky"
    >
      <div class="choose-ypr-container">
        <div class="choose-ypr-search-container">
          <span class="title">部门：</span>
          <el-select
            v-model="xq"
            style="width: 100px; margin-right: 30px"
            size="mini"
            placeholder="请选择"
          >
            <el-option
              v-for="item in xqList"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </el-select>
          <el-input
            style="width: 152px; margin-right: 20px"
            size="mini"
            v-model="courseYpr"
            placeholder="关键字搜索"
          >
            <i slot="prefix" class="el-input__icon el-icon-search"></i>
          </el-input>
          <div class="search-button">
            <img src="../../../assets/assessment/icon-search.png" alt="" />
            <span>查询</span>
          </div>
          <div class="button-list">
            <div
              class="button-item"
              v-for="(item, index) in searchNameList"
              :key="index"
              @click="delTag(index)"
            >
              <img
                class="del-icon"
                src="../../../assets/assessment/approval-del.png"
                alt=""
              />
              <div>{{ item }}</div>
            </div>
          </div>
        </div>
        <div class="choose-ypr-table-container">
          <el-table
            :data="yprList"
            border
            style="width: 100%"
            class="table-data"
            row-class-name="row-class"
            cell-class-name="cell-class"
            header-row-class-name="header-row-class"
            header-cell-class-name="header-cell-class"
          >
            <el-table-column
              prop=""
              label="选择"
              width="154"
              align="center"
              class-name=""
              label-class-name=""
            >
              <template slot-scope="scope">
                <el-checkbox></el-checkbox>
              </template>
            </el-table-column>
            <el-table-column
              prop="name"
              label="姓名"
              width="153"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="sex" label="性别" width="154" align="center">
            </el-table-column>
            <el-table-column
              prop="company"
              label="单位"
              width="153"
              align="center"
            >
            </el-table-column>
            <el-table-column prop="position" label="职务" align="center">
            </el-table-column>
          </el-table>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <button class="green" @click="showYprDialog = false">确 定</button>
      </span>
    </el-dialog>
    <el-dialog
      title="申请调整监考"
      :visible.sync="showYprDialogs"
      width="983px"
      style="height:832px"
      class="szjky"
    >
      <div class="assessment-edit-plan-container">
        <div class="my-form-container" style="width:100%;height:350px">
          <el-row class="my-form-item" style="height: 50%;">
            <el-col>
              <div class="my-form-item-label">调整事由</div>
              <div class="my-form-item-value assessment-design">
                <el-input
                  v-model="design"
                  type="textarea"
                  :rows="6"
                  style=" width: 625px;
                    margin-top: 17px;  margin-left: -20px;"
                  placeholder="请输入内容"
                ></el-input>
              </div>
            </el-col>
          </el-row>
          <el-row class="my-form-item" style="height: 50%;">
            <el-col>
              <div class="my-form-item-label">新监考员</div>
              <div
                class="my-form-item-value"
                style="margin-top:70px;    height: 100px;"
              >
                <img
                  @click="sss"
                  src="../../../assets/home/grena-anniu.png"
                  alt=""
                />
              </div>
            </el-col>
          </el-row>
        </div>
      </div>
      <span slot="footer" class="dialog-footer">
        <img
          @click="showYprDialogs = false"
          class="del-icon"
          src="../../../assets/home/yellow-commint.png"
          alt=""
        />
      </span>
    </el-dialog>
  </div>
</template>

<script>
import tablelist from "@/views/comonents/tablelist";
import ButtonItem from "../../../components/ButtonItem.vue";
import { reqGetXqList,queryDictByCode } from "@/api/admin1/check";
import { getxb,getClass,queryXBclassroom } from "@/api/course/courses";

export default {
  components: {
    tablelist,
    ButtonItem,
  },
  name: "supervisonMain",
  data() {
    return {
      config: {
        mergeTarget: "id", // 通用依据
        combineProp: [
          // combineProp - 根据mergeTarge 进行合并的单元格属性
          "state",
          "data",
          "course",
          "system",
          "Section",
          "research",
          "course",
          "instructor",
          "examinationType",
          "method",
        ],
      },
      searchParams:{
        termid:'',
        department:'',
        teachingandresearchsection:'',
        coursename: "",
        coursenumber:"",
        section:"",
        rq:"",
        examcoucheckstatus:"",
      },
      colDataList: [
        {
          label: "状态",
          prop: "state",
        },
        {
          label: "日期",
          prop: "data",
        },
        {
          label: "节次",
          prop: "Section",
        },
        {
          label: "系",
          prop: "system",
        },
        {
          label: "教研室",
          prop: "research",
        },
        {
          label: "考试课程",
          prop: "course",
        },
        {
          label: "授课教员",
          prop: "instructor",
        },
        {
          label: "考试类型",
          prop: "examinationType",
        },
        {
          label: "考试方式",
          prop: "method",
        },
        {
          label: "级次",
          prop: "Level",
        },
        {
          label: "专业班次",
          prop: "Professional",
        },
        {
          label: "人数",
          prop: "Number",
        },
        {
          label: "考场",
          prop: "room",
        },
        {
          label: "监考员",
          prop: "proctor",
        },
        {
          label: "备注",
          prop: "remarks",
        },
      ],
      tableData: [
        {
          kcmc: "审查通过",
          pycc: "2021-10-25",
          xxlx: "1，2，3",
          skjy: "选修",
          nj: "计算机系",
          jxb: "教研室",
          zybc: "李教员",
          jxbrs: "机试",
          zrs: "机试",
          fza: "1队",
          fzb: "1队",
          fzc: "1队",
          jca: "2020级",
          jcb: "2020级",
          jcc: "2020级",
          kxzybla: "专业班次1",
          kxzyblb: "专业班次1",
          kxzyblc: "专业班次1",
          ktcpszbla: "6",
          ktcpszblb: "6",
          ktcpszblc: "6",
          zqksszbla: "201",
          zqksszblb: "201",
          zqksszblc: "201",
          kzkhszbla: "马冬梅",
          kzkhszblb: "",
          kzkhszblc: "",
          ypfja: "",
          ypfjb: "",
          ypfjc: "",
          spjd: {
            spjd1: {
              name: "管理员",
              date: "2021-06-04",
              time: "17：52",
            },
            spjd2: {
              name: "教研室主任",
              date: "2021-06-04",
              time: "17：52",
            },
            spjd3: {
              name: "管理员",
              date: "2021-06-05",
              time: "10：52",
            },
          },
        },
        {
          kcmc: "",
          pycc: "2021-10-25",
          xxlx: "1，2，3",
          skjy: "选修",
          nj: "计算机系",
          jxb: "教研室",
          zybc: "李教员",
          jxbrs: "机试",
          zrs: "机试",
          fza: "1队",
          fzb: "1队",
          fzc: "1队",
          jca: "2020级",
          jcb: "2020级",
          jcc: "2020级",
          kxzybla: "专业班次1",
          kxzyblb: "专业班次1",
          kxzyblc: "专业班次1",
          ktcpszbla: "6",
          ktcpszblb: "6",
          ktcpszblc: "6",
          zqksszbla: "201",
          zqksszblb: "201",
          zqksszblc: "201",
          kzkhszbla: "马冬梅",
          kzkhszblb: "",
          kzkhszblc: "",
          ypfja: "",
          ypfjb: "",
          ypfjc: "",
          spjd: {
            spjd1: {
              name: "管理员",
              date: "2021-06-04",
              time: "17：52",
            },
            spjd2: {
              name: "教研室主任",
              date: "2021-06-04",
              time: "17：52",
            },
            spjd3: {
              name: "管理员",
              date: "2021-06-05",
              time: "10：52",
            },
          },
        },
      ],
      record: 0,
      design: "",
      searchNameList: ["张三丰", "李木"],
      xqList: [],
      xbList:[],
      gClassList:[],
      sectionList:[], //节次
      yprList: [],
      courseYpr: "",
      showYprDialog: false,
      showYprDialogs: false,
      showAddMessageDialog: false,
      showAddMessageDialogly: false,
      showAddMessageDialoglys: false,
      meaasgeText: "",
      course: "",
      setName: "",
    };
  },
  created() {},
  mounted() {
    this.termAll();
    this.xbAll();
    this.classAll();
    this.sectionData();
  },
  methods: {
    async xbAll(){
      const xb = await getxb();
      xb.data.code == 200 ? this.xbList = xb.data.data : [];
    },
    async classAll(){
      const gClass = await getClass();
      gClass.data.code == 200 ? this.gClassList = gClass.data.data : [];
    },
    // 根据系部选中获取教研室
    async handleXb(val){
      if(val){
        const xbClass = await queryXBclassroom(val);
        xbClass.data.code == 200 ? this.gClassList = xbClass.data.data : [];
      } else {
        this.xbAll();
        this.classAll();
      }
    },
    // 教研室下拉框的改变
    handleClass(val){
      if(!val){
        this.xb ? this.handleXb(this.xb)  : this.classAll();
      }
    },
    //学期
    async termAll() {
      const result = await reqGetXqList();
      if (result.data.code == 200) {
        this.xqList = result.data.data;
      }
    },
    //节次
    sectionData() {
      queryDictByCode(this.code).then(res=>{
        this.sectionList = res.data.data;
      })
    },
    choiceLink(index) {
      this.record = index;
    },
    sss() {
      this.showYprDialogs = false;
      this.showYprDialog = true;
      console.log("pppppppppp");
      console.log(this.showYprDialogs);
    },
    toEditPlanss() {
      this.$router.push("/teacher/examination/examination");
    },
    toEditPlanssa() {
      this.$router.push("/teacher/workload/AdjustInvigilators");
    },
    delTag(index) {
      this.searchNameList.splice(index, 1);
    },
    checkAll() {
      this.tableData = this.tableData.map((item) => {
        return { ...item, checked: this.checkedStatus };
      });
    },
    itemChange() {
      this.checkedStatus = this.tableData.every((item) => item.checked);
    },
    toChangeRecord() {
      this.$router.push("/teacher/workload/arrangement");
    },
    toEditPlan() {
      // this.$router.push("/teacher/assessment/editPlan");
    },
    toChangePlan() {
      // this.$router.push("/teacher/assessment/changePlan");
    },
  },
  computed: {}, //计算属性
};
</script>

<style lang="less" scoped>
.choose-ypr-container {
  width: 767px;
  margin: 0px auto;
  .choose-ypr-search-container {
    .el-input--prefix .el-input__inner {
      padding-left: 30px;
    }
    .el-input__inner {
      &::placeholder {
        color: #b8b8b8;
      }
      &::-webkit-input-placeholder {
        /* WebKit browsers 适配谷歌 */
        color: #b8b8b8;
      }
      &:-moz-placeholder {
        /* Mozilla Firefox 4 to 18 适配火狐 */
        color: #b8b8b8;
      }
      &::-moz-placeholder {
        /* Mozilla Firefox 19+ 适配火狐 */
        color: #b8b8b8;
      }
      &:-ms-input-placeholder {
        /* Internet Explorer 10+  适配ie*/
        color: #b8b8b8;
      }
    }
    display: flex;
    flex-direction: row;
    align-items: center;
    .title {
      font-size: 18px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      line-height: 20px;
      color: #004ca7;
      margin-right: 5px;
    }
    .search-button {
      width: 77px;
      height: 28px;
      line-height: 28px;
      background: #f1f8fe;
      border: 1px solid #51aef6;
      border-radius: 6px;
      cursor: pointer;
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: center;
      > span {
        font-size: 16px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #51aef6;
      }
      > img {
        width: 20px;
        height: 20px;
        margin-right: 4px;
      }
    }
    .button-list {
      display: flex;
      flex-direction: row;
      align-items: center;
      margin-left: 21px;
      .button-item {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        position: relative;
        width: 69px;
        height: 27px;
        line-height: 27px;
        border: 1px solid #004ca7;
        border-radius: 4px;
        margin-right: 10px;
        text-align: center;
        font-size: 14px;
        font-family: Microsoft YaHei;
        font-weight: 400;
        color: #004ca7;
        .del-icon {
          position: absolute;
          right: 0px;
          top: 0px;
          width: 12px;
          height: 12px;
          padding: 2px;
        }
      }
    }
  }
  .choose-ypr-table-container {
    margin-top: 30px;
    .el-table td,
    .el-table th.is-leaf,
    .el-table--border,
    .el-table--group {
      border-color: #c7d7eb;
    }
    .el-table__header tr,
    .el-table__header th {
      padding: 0;
      height: 57px;
      background-color: #edf2f9;
      font-size: 16px;
      font-family: Microsoft YaHei;
      font-weight: bold;
      line-height: 20px;
      color: #004ca7;
    }
    .el-table__body tr,
    .el-table__body td {
      padding: 0;
      height: 51px;
    }
    .table-data {
      width: 100%;
      border: 0.8px solid #004ca7;
      border-radius: 9px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #004ca7;
    }
  }
}
.assessment-container {
  .el-dialog__body {
    height: 251px;
  }
  .el-dialog__footer {
    padding: 10px 20px 45px;
  }
  .el-checkbox__inner:hover {
    border-color: #004ca7;
  }
  .el-checkbox__inner {
    border: 1px solid #004ca7;
    border-radius: 0;
    height: 18px;
    width: 18px;
  }
  .el-checkbox__inner::after {
    height: 10px;
    left: 6px;
  }
  .el-checkbox__input.is-checked .el-checkbox__inner,
  .el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #004ca7;
    border-color: #004ca7;
  }
  .el-checkbox__input.is-checked + .el-checkbox__label {
    color: #004ca7;
  }
  .el-checkbox.is-bordered.is-checked {
    border-color: #004ca7;
  }
  .el-checkbox__input.is-focus .el-checkbox__inner {
    border-color: #004ca7;
  }
}
</style>
<style lang="less" scoped>
@import "../../../styles/text.less";
.assessment-container .table-container {
  // overflow: scroll;
}
.assessment-container .table-container .table-header {
  width: 1935px;
}
.assessment-container .table-container .table-body {
  width: 1935px;
}
/deep/ .szjky .el-dialog__body {
  height: 432px;
}
.pagination-block {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
}
.message-container {
  > div {
    display: inline-block;
    &:nth-child(1) {
      padding-left: 111px;
      font-size: 20px;
      color: rgba(0, 76, 167, 1);
      font-weight: bold;
      vertical-align: top;
    }
    &:nth-child(2) {
    }
  }
}
</style>
<style lang="less" scoped>
@import "../../../styles/supervision.less";
//顶部的查询条件

.wrapper-container {
  width: 1711px;
  margin: 0 auto;
}

/deep/ .table-container {
  .el-table td,
  .el-table th.is-leaf,
  .el-table--border,
  .el-table--group {
    border-color: #c7d7eb;
  }

  .el-table__header tr,
  .el-table__header th {
    padding: 0;
    height: 76px;
    background-color: #edf2f9;
    font-size: 16px;
    font-family: Microsoft YaHei;
    font-weight: bold;
    line-height: 20px;
    color: #004ca7;
  }

  .el-table__body tr,
  .el-table__body td {
    padding: 0;
    height: 86px;
  }

  .wrapper-button {
    display: flex;
    flex-direction: column;
    align-items: center;

    > div {
      margin-bottom: 8px;
    }
  }
  .table-data {
    width: 100%;
    border: 0.8px solid #004ca7;
    border-radius: 9px;
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    color: #004ca7;
  }
}

.wrapper-container .search-container .search-container-left {
  flex-wrap: wrap;
  .search-container-item {
    width: 12%;
    margin-right: 0px;
    .box {
      > span {
        text-align: left;
      }
      display: flex;
      justify-content: space-evenly;
      margin-bottom: 20px;
      align-items: center;
    }
  }
}

/deep/.el-date-editor.el-input {
  width: 110px;
}
/deep/ .el-input--medium {
  width: 110px;
  .el-input__inner {
    height: 28px;
    width: 110px;
    padding: 0px 18px;
  }
}
/deep/ .el-table thead {
  color: #004ca7 !important;
}

.btn {
  margin-top: 271px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 271px;
  .submit {
    width: 84px;
    height: 27px;
    line-height: 8px;
  }
}
.bottom-block {
  display: flex;
  flex-direction: row;
  justify-content: space-between !important;
  .export-button {
    width: 127px;
    height: 27px;
    background: #fff6ef;
    border: 1px solid #f3b815;
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    > img {
      width: 17px;
      height: 17px;
    }
    > span {
      margin-left: 12px;
      font-size: 14px;
      font-family: Microsoft YaHei;
      font-weight: 400;
      color: #f3b815;
    }
  }
  .text {
    font-size: 14px;
    font-family: Microsoft YaHei;
    font-weight: 400;
    line-height: 39px;
    color: #004ca7;
  }
}
</style>
